package org.brisling.satisfaction.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.brisling.base.domain.impl.BaseDomain;
import org.brisling.base.domain.inf.BaseDomainInf;
import org.brisling.common.ConstSysParam;

/**
 * 门诊，住院满意度调查问卷的问题
 * @author SherlockMoon
 *
 */
@Entity
@Table(name=ConstSysParam.MODULE_SATISFACTION_EVALUATE_RESULT)
public class SatisfactionEvaluateResult extends BaseDomain implements BaseDomainInf{
	
	public SatisfactionEvaluateResult(){}
	
	public SatisfactionEvaluateResult(String patient_id,String problem_code,String score){
		this.patient_id = patient_id;
		this.problem_code = problem_code;
		this.score = score;
	}
	
	
	
	/*
	 *   CREATE TABLE "TESTBASE"."SATISFACTION_EVALUATE_RESULT" 
   (	"EVAL_PROBLEM_ID" VARCHAR2(108 BYTE) NOT NULL ENABLE, 
	"EVALUATE_ID" VARCHAR2(108 BYTE), 
	"PROBLEM_CODE" VARCHAR2(150 BYTE), 
	"PROBLEM_SUBJECT" VARCHAR2(600 BYTE), 
	"RESULT" VARCHAR2(108 BYTE), 
	"SCORE" VARCHAR2(90 BYTE)
   ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
  TABLESPACE "USERS" ;
	 */
	@Column(length=30)
	private String patient_id;
	
	@Column(length=50)
	private String patient_code;
	
	@Column(length=108)
	private String evaluate_id;
	
	public String getPatient_code() {
		return patient_code;
	}

	public void setPatient_code(String patient_code) {
		this.patient_code = patient_code;
	}

	@Column(length=150)
	private String problem_code;
	
	@Column(length=600)
	private String problem_subject;
	
	@Column(length=108)
	private String result;
	
	@Column(length=90)
	private String score;

	public String getEvaluate_id() {
		return evaluate_id;
	}

	public void setEvaluate_id(String evaluate_id) {
		this.evaluate_id = evaluate_id;
	}

	public String getProblem_code() {
		return problem_code;
	}

	public void setProblem_code(String problem_code) {
		this.problem_code = problem_code;
	}

	public String getProblem_subject() {
		return problem_subject;
	}

	public void setProblem_subject(String problem_subject) {
		this.problem_subject = problem_subject;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}

	public String getPatient_id() {
		return patient_id;
	}

	public void setPatient_id(String patient_id) {
		this.patient_id = patient_id;
	}
	
	
}
